xen/x86: Avoid undefined behaviour by shifting into a sign bit
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 5 Aug 2016 13:24:01 +0000 (14:24 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 11 Aug 2016 09:09:01 +0000 (10:09 +0100)
commit71a8c219e8b7c61781f4c5a589cd8715050b9961
tree70965bc01cc3d63e1dcb5d7a73741d5f2cc80db8
parent26ce62d7763808f866c05a2e747583023f664a1f
xen/x86: Avoid undefined behaviour by shifting into a sign bit

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/apic.c
xen/arch/x86/cpu/common.c
xen/arch/x86/x86_64/traps.c
xen/include/asm-x86/apicdef.h